package com.demo.app.manager;

import com.demo.app.common.Result;
import com.demo.app.entity.User;
import com.demo.app.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * Manager
 * </p>
 *
 * @author zhangxt
 * @date 2023/11/2
 */
@Service
public class UserManager {

    @Autowired
    private UserService service;

    public Result selectAll() {
        List<User> list = service.list();
        return Result.success(list);
    }

}
